import java.util.Random;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Random ran = new Random();
        Scanner scan = new Scanner(System.in);
        int r = ran.nextInt(100);
        System.out.println(r);
        while(true) {
            System.out.print("请输入数字：");
            int n = scan.nextInt();
            if(n>r) {
                System.out.println("偏大了");
            }else if(n == r) {
                System.out.println("猜对了");
                break;
            }else {
                System.out.println("偏小了");
            }
        }
    }
}
